package org.googlecode.viewt.core.tools.web;

public class ValidationConfigGenerator extends BaseWebGenerator {
	public String getLoggerCategory() {
		return "ValidationConfigGenerator";
	}

	public String getTemplate(String actionName) throws Exception {
		return "xml_VALIDATION.vm";
	}

	public String getOutputFile(String actionName) throws Exception {
		return WebActionUtil.validationConfigFile(getDestPath(),
				getPrePackName(), getActionsDef().getProjectName(),
				getActionsDef().getModuleName(), actionName);
	}

	public boolean needGenerate(String actionName) throws Exception {
		return WebActionUtil.containsValidationDef(getActionsDef(), actionName);
	}

	public void setupContext() throws Exception {
	}

	public void setupContext(String actionName) throws Exception {
	}

	public void cleanContext(String actionName) throws Exception {
	}

	public void cleanContext() throws Exception {
	}
}